package com.github.wj;

import com.github.wj.orm.security.datasource.DynamicDataSourceRegister;
import com.github.wj.orm.security.repository.impl.CustomRepositoryFactoryBean;
import com.github.wj.security.server.component.HttpConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018/3/13
 */
@SpringBootApplication
@EnableJpaRepositories(repositoryFactoryBeanClass = CustomRepositoryFactoryBean.class)
@EnableTransactionManagement
@Import({DynamicDataSourceRegister.class})
@EnableConfigurationProperties({HttpConfig.class})
@EnableAsync
public class BootApplication {
    public static void main(String[] args) {
        SpringApplication.run(BootApplication.class, args);
    }
}
